import Vue from 'vue'
import Router from 'vue-router' 
// import Home from '../views/Home.vue'
Vue.use(Router)

let routes = [
  
  {
    
    path: "/",
    redirect: "/home",
    name: "一级菜单",
    component: resolve => require(["./views/HomeBu.vue"], resolve),
    children: [
      {
        path: "/home",
        name: "首页",
        component: resolve => require(["./views/HomeZhong.vue"], resolve),
      },
      {
        path: "/zhaopinxinxi",
        name: "招聘信息",
        component: resolve => require(["./views/ZhaoPinxinxi.vue"], resolve),
      },
      {
        path: "/feizhaobiaoxinxi",
        name: "非招标信息",
        component: resolve => require(["./views/FeiZhaobiaoxinxi.vue"], resolve),
      },
      {
        path: "/chuzhigonggao",
        name: "处置公告",
        component: resolve => require(["./views/ChuZhigonggao.vue"], resolve),
      },
      {
        path: "/wangluogonggao",
        name: "网络公告",
        component: resolve => require(["./views/WangLuogonggao.vue"], resolve),
      },
      {
        path: "/guanyuwom",
        name: "关于我们",
        component: resolve => require(["./views/GuanyuWm.vue"], resolve),
      },
      {
        path: "/xitongguanli",
        name: "系统管理",
        component: resolve => require(["./views/XiTongguanli.vue"], resolve),
      },
      {
        path: "/wode",
        name: "我的",
        component: resolve => require(["./views/WoDe.vue"], resolve),
      },
      {
        path: "/woyaofabu",
        name: "我要发布",
        component: resolve => require(["./views/WoYaofabu.vue"], resolve),
      },

     
    ]
  },
 
 
]
//  
const router = new Router({
  mode: 'hash',
  history: true,
  // base: process.env.BASE_URL,
  routes
})
 
export default router
